<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Open persistent Internet or Unix domain socket connection</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.openlog.html">openlog</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.setcookie.html">setcookie</a></div>
 <div class="up"><a href="ref.network.html">Network 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.pfsockopen" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">pfsockopen</h1>
  <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">pfsockopen</span> &mdash; <span class="dc-title">Open persistent Internet or Unix domain socket connection</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.pfsockopen-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">resource</span> <span class="methodname"><strong>pfsockopen</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$hostname</code></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$port</code><span class="initializer"> = -1</span></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter reference">&$errno</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter reference">&$errstr</code></span>
   [, <span class="methodparam"><span class="type">float</span> <code class="parameter">$timeout</code><span class="initializer"> = ini_get(&quot;default_socket_timeout&quot;)</span></span>
  ]]]] )</div>

  <p class="para rdfs-comment">
   This function behaves exactly as <span class="function"><a href="function.fsockopen.html" class="function">fsockopen()</a></span> with the
   difference that the connection is not closed after the script finishes.
   It is the persistent version of <span class="function"><a href="function.fsockopen.html" class="function">fsockopen()</a></span>.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.pfsockopen-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   For parameter information, see the <span class="function"><a href="function.fsockopen.html" class="function">fsockopen()</a></span>
   documentation.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.pfsockopen-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="function.fsockopen.html" class="function" rel="rdfs-seeAlso">fsockopen()</a> - Open Internet or Unix domain socket connection</span></li>
   </ul>
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.openlog.html">openlog</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.setcookie.html">setcookie</a></div>
 <div class="up"><a href="ref.network.html">Network 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
